package org.yate.oa.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.CacheNamespace;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.RelationEntity;

@Repository(value = "relationMapper")
@CacheNamespace(size = 512)
public interface RelationMapper extends IBaseMapperDao<RelationEntity, Integer> {

	List<RelationEntity> getEntitiesBy(final RelationEntity e);

	RelationEntity getEntityBy(final RelationEntity e);

	void removeBy(final RelationEntity e);

	void updateBatch(Map<String, Integer> map);

}
